package com.peas.platform.module.icims.base.mdm.controller.vo;

import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.common.core.vo.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.*;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("政府单位")
public class GovernmentVo extends BaseVo {

    // 0:施工单位、1:结算单位
    @Comment(value = "政府单位类型", enumType = "GovernmentType")
    @ApiModelProperty(value = "政府单位类型", notes = "枚举取值:GovernmentType")
    @NotBlank(message = "政府单位类型不能为空")
    @Size(max = 20, message = "政府单位类型不能超过20个字符")
    private String governmentType;

    @Comment(value = "政府单位编码")
    @ApiModelProperty(value = "政府单位编码")
    @Size(max = 50, message = "政府单位编码不能超过50个字符")
    private String governmentCode;

    @Comment(value = "政府单位名称")
    @ApiModelProperty(value = "政府单位名称")
    @NotBlank(message = "政府单位名称不能为空")
    @Size(max = 200, message = "政府单位名称不能超过200个字符")
    private String governmentName;

    @Comment(value = "状态", enumType = "CommonEnableDisable")
    @ApiModelProperty(value = "状态", notes = "枚举取值:CommonEnableDisable")
    @NotBlank(message = "状态不能为空")
    @Size(max = 20, message = "状态不能超过20个字符")
    private String state;

    @Comment(value = "备注")
    @ApiModelProperty(value = "备注")
    private String remark;

    // （政府单位表）外键
    @Comment(value = "上级政府单位ID")
    @ApiModelProperty(value = "上级政府单位ID")
    private Long parentId;

}
